package com.heima.comment.service.impl;

import com.heima.comment.entity.ApComment;
import com.heima.common.dtos.FindNewsCommentsDto;
import com.heima.comment.mapper.ApCommentMapper;
import com.heima.comment.service.ApCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.common.dtos.PageResult;
import com.heima.common.threadlocal.UserThreadLocalUtils;
import com.heima.feign.ArticleFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wmy
 * @since 2023-06-12
 */
@Service
public class ApCommentServiceImpl extends ServiceImpl<ApCommentMapper, ApComment> implements ApCommentService {

    @Autowired
    private ArticleFeign articleFeign;

    @Override
    public PageResult findNewsComments(FindNewsCommentsDto dto) {



        PageResult result = articleFeign.findNewsComments(dto);

        return result;
    }



}
